Ko Class Declaration
Represents a Kotlin class declaration.
Properties
List of annotations.
The all primary and secondary constructors of the declaration.
The parent of the declaration.
File containing the declaration.
List of enum constants.
Fully qualified name of the declaration.
Determines whatever declaration has abstract
modifier.
Determines whatever class has actual
modifier.
Determines whatever declaration has annotation
modifier.
Determines whatever declaration has data
modifier.
Determines whatever declaration has enum
modifier.
Determines whatever declaration has expect
modifier.
Determines whatever declaration has final
modifier.
Determines whatever declaration has inner
modifier.
Determines whatever the declaration has internal modifier.
Determines whatever declaration has open
modifier.
Determines whatever declaration has primary constructor.
Determines whatever the declaration has private modifier.
Determines whatever the declaration has protected modifier.
Determines whatever the declaration has public modifier.
Determines whatever the declaration has public or no visibility modifier.
Determines whatever declaration has sealed
modifier.
Determines whatever declaration has value
modifier.
The init blocks of the declaration.
Determines whatever the declaration is defined at top level.
Documentation of the declaration.
Text of the declaration with the location (file path, line and column).
List of modifiers.
The declaration's module name.
The number of annotations.
The number of constructors.
The number of enum constants.
The number of init blocks.
The number of modifiers.
The number of secondary constructors.
The number of type parameters.
Package of the declaration.
The direct parent class of the declaration.
The parent interfaces of the declaration.
Project file path of the declaration or root project path of the file.
The secondary constructors of the declaration.
The declaration's source set name.
Type parameters of the declaration.
Functions
The children of the declaration.
The classes and interfaces present in the declaration.
The classes, interfaces and objects present in the declaration.
The classes and objects present in the declaration.
Returns the number of annotations that satisfies the specified predicate present in the declaration.
Gets the number of children that satisfies the specified predicate present in the declaration.
Returns the number of classes that satisfies the specified predicate present in the declaration.
Returns the number of classes and interfaces that satisfies the specified predicate present in the declaration.
Returns the number of classes, interfaces and objects that satisfies the specified predicate present in the declaration.
Returns the number of classes and objects that satisfies the specified predicate present in the declaration.
Returns the number of constructors that satisfies the specified predicate present in the declaration.
Returns the number of declarations that satisfies the specified predicate present in the declaration.
Returns the number of enum constants that satisfies the specified predicate present in the declaration.
Returns the number of external parents that satisfies the specified predicate present in the declaration.
Returns the number of functions that satisfies the specified predicate present in the declaration.
Returns the number of init blocks that satisfies the specified predicate present in the declaration.
Returns the number of interfaces that satisfies the specified predicate present in the declaration.
Returns the number of interfaces and objects that satisfies the specified predicate present in the declaration.
Returns the number of objects that satisfies the specified predicate present in the declaration.
Returns the number of parent classes that satisfies the specified predicate present in the declaration.
Returns the number of parent interfaces that satisfies the specified predicate present in the declaration.
Returns the number of parents that satisfies the specified predicate present in the declaration.
Returns the number of properties that satisfies the specified predicate present in the declaration.
Returns the number of secondary constructors that satisfies the specified predicate present in the declaration.
Returns the number of test classes matching the predicate.
Returns the number of type parameters that satisfies the specified predicate present in the declaration.
The declarations present in the declaration.
The declarations of type T present in the declaration.
List containing external parents of the declaration.
Determines whether the declaration has all annotations that satisfy the provided predicate.
Determines whether the declaration has annotations with all the specified KClass
type.
Determines whether the declaration has all children defined directly in the Kotlin file that satisfy the provided predicate.
Determines whether the declaration has children with all the specified KClass
type.
Determines whether the declaration has all classes that satisfy the provided predicate.
Determines whether the declaration has all classes and interfaces that satisfy the provided predicate.
Determines whether the declaration has all classes, interfaces and objects that satisfy the provided predicate.
Determines whether the declaration has all classes and objects that satisfy the provided predicate.
Determines whatever the declaration has all constructors with the specified predicate.
Determines whether the declaration has all declarations that satisfy the provided predicate.
Determines whatever the declaration has all enum constants with the specified predicate.
Determines whether the declaration has all external parents that satisfy the provided predicate.
Determines whether the declaration has external parents with all the specified KClass
type.
Determines whether the declaration has all functions that satisfy the provided predicate.
Determines whether the declaration has all init blocks that satisfy the provided predicate.
Determines whether the declaration has all interfaces that satisfy the provided predicate.
Determines whether the declaration has all interfaces and objects that satisfy the provided predicate.
Determines whether the declaration has all specified modifiers.
Determines whether the declaration has all objects that satisfy the provided predicate.
Determines whether the declaration has all parent classes that satisfy the provided predicate.
Determines whether the declaration has parent classes with all the specified KClass
type.
Determines whether the declaration has all parent interfaces that satisfy the provided predicate.
Determines whether the declaration has parent interfaces with all the specified KClass
type.
Determines whether the declaration has all parents (parent classes and parent interfaces) that satisfy the provided predicate.
Determines whether the declaration has parents with all the specified KClass
type.
Determines whether the declaration has all properties that satisfy the provided predicate.
Determines whether the declaration has all secondary constructors that satisfy the provided predicate.
Determines whether the declaration has all type parameters that satisfy the provided predicate.
Determines whether the declaration has at least one annotation that satisfies the provided predicate.
Determines whether the declaration has at least one annotation of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any annotation.
Determines whether the declaration has annotations with all the specified names.
Determines whether the declaration has at least one annotation whose name matches any of the specified names.
Determines whether the declaration has at least one child of the specified KClass
type.
Whatever declaration has any child defined directly in the Kotlin file.
Determines whether the declaration has children defined directly in the Kotlin file with all the specified names.
Determines whether the declaration has at least one child defined directly in the Kotlin file whose name matches any of the specified names.
Determines whatever the declaration has classes.
Determines whether the declaration has classes, interfaces and objects with all the specified names.
Determines whether the declaration has classes and interfaces with all the specified names.
Determines whether the declaration has classes and objects with all the specified names.
Determines whatever the declaration has classes and interfaces.
Determines whatever the declaration has classes, interfaces and objects.
Determines whatever the declaration has classes and objects.
Determines whether the declaration has classes with all the specified names.
Determines whether the declaration has at least one class or interface that satisfies the provided predicate.
Determines whether the declaration has at least one class, interface or object that satisfies the provided predicate.
Determines whether the declaration has at least one class, interface or object whose name matches any of the specified names.
Determines whether the declaration has at least one class or interface whose name matches any of the specified names.
Determines whether the declaration has at least one class or object that satisfies the provided predicate.
Determines whether the declaration has at least one class or object whose name matches any of the specified names.
Determines whether the declaration has at least one class whose name matches any of the specified names.
Determines whatever the declaration has any constructor with the specified predicate.
Determines whatever the declaration has any constructor.
Determines whether the declaration has at least one declaration that satisfies the provided predicate.
Determines whatever the declaration has declarations.
Determines whether the declaration has at least one enum constant that satisfies the provided predicate.
Determines whatever the declaration has any enum constant.
Determines whether the declaration has enum constants with all the specified names.
Determines whether the declaration has at least one enum constant whose name matches any of the specified names.
Determines whether the declaration has at least one external parent that satisfies the provided predicate.
Determines whether the declaration has at least one external parent of the specified KClass
type.
Returns true
if declaration represents the type of T. The external parent is a parent defined outside the project codebase (defined inside external library).
Determines whatever declaration has any external parents. The external parent is a parent defined outside project codebase (defined inside external library).
Determines whether the declaration has parents interface defined project codebase (external == false)
Determines whether the declaration has at least one external parent whose name matches any of the specified.
Determines whether the declaration has at least one function that satisfies the provided predicate.
Determines whatever the declaration has functions.
Determines whether the declaration has functions with all the specified names.
Determines whether the declaration has at least one function whose name matches any of the specified names.
Determines whether the declaration has at least one init block that satisfies the provided predicate.
Determines whatever declaration has init blocks.
Determines whether the declaration has at least one interface that satisfies the provided predicate.
Determines whether the declaration has at least one interface or object that satisfies the provided predicate.
Determines whether the declaration has at least one interface or object whose name matches any of the specified names.
Determines whatever the declaration has interfaces.
Determines whether the declaration has interfaces and objects with all the specified names.
Determines whatever the declaration has interfaces and objects.
Determines whether the declaration has interfaces with all the specified names.
Determines whether the declaration has at least one interface whose name matches any of the specified names.
Determines whether the declaration has at least one specified modifier.
Determines whatever the declaration has modifiers.
Name of the declaration containing text.
Name of the declaration with suffix.
Name of the declaration matching regex.
Name of the declaration with prefix.
Determines whatever the declaration has objects.
Determines whether the declaration has objects with all the specified names.
Determines whether the declaration has at least one object whose name matches any of the specified names.
Determines whether declaration has a direct parent class.
Determines whether the declaration has a specified parent class. If indirectParents
is set to true
, it verifies if there's at least one parent class that satisfies the provided predicate.
Determines whatever declaration has any parent class.
Determines whether the declaration has parent classes with all the specified names.
Determines whether the declaration has a parent class of the specified Kotlin class. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Returns true
if declaration represents the type of T.
Determines whether the declaration has a parent class whose name matches any of the specified names. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Determines whether the declaration has at least one parent interface that satisfies the provided predicate.
Determines whether the declaration has at least one parent interface of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any parent interface.
Determines whether the declaration has parent interfaces defined with all the specified names.
Determines whether the declaration has at least one parent interface whose name matches any of the specified names.
Determines whether the declaration has at least one parent of the specified KClass
type.
Returns true
if declaration represents the type of T.
Determines whatever declaration has any parent (parent class and parent interfaces).
Determines whether the declaration has parents (parent classes and parent interfaces) with all the specified names.
Determines whether the declaration has at least one parent (parent class and parent interfaces) whose name matches any of the specified names.
Determines whatever the declaration has properties.
Determines whether the declaration has properties with all the specified names.
Determines whether the declaration has at least one property that satisfies the provided predicate.
Determines whether the declaration has at least one property whose name matches any of the specified names.
Determines whether the declaration has at least one secondary constructor that satisfies the provided predicate.
Determines whatever declaration has secondary constructors.
Determines whatever declaration has a test class that satisfies the provided predicate.
Determines whatever declaration has a Test class.
Text of the declaration containing text.
Text of the declaration with suffix.
Text of the declaration matching regex.
Text of the declaration with prefix.
Determines whether the declaration has at least one type parameter that satisfies the provided predicate.
Determines whatever declaration has any type parameter.
Determines whether the declaration has type parameters with all the specified names.
Determines whether the declaration has at least one type parameter whose name matches any of the specified names.
The interfaces present in the declaration.
The interfaces and objects present in the declaration.
The number of children.
Returns the number of classes present in the declaration.
Returns the number of classes and interfaces present in the declaration.
Returns the number of classes, interfaces and objects present in the declaration.
Returns the number of classes and objects present in the declaration.
Returns the number of declarations present in the declaration.
Returns the number of external parents.
Returns the number of functions present in the declaration.
Returns the number of interfaces present in the declaration.
Returns the number of interfaces and objects present in the declaration.
Returns the number of declarations with internal visibility modifier present in the declaration.
Returns the number of objects present in the declaration.
Returns the number of parent classes.
Returns the number of parent interfaces.
Returns the number of parents.
Returns the number of declarations with private visibility modifier present in the declaration.
Returns the number of properties present in the declaration.
Returns the number of declarations with protected visibility modifier present in the declaration.
Returns the number of declarations with public visibility modifier present in the declaration.
Returns the number of declarations with public or default visibility modifier present in the declaration.
Returns the number of test classes.
The objects present in the declaration.
The parent classes of the declaration.
The parent interfaces of the declaration.
The parents (parent class and parent interfaces) of the declaration.
The properties present in the declaration.
Determines whatever this declaration represents the specified type.
Returns true
if declaration represents the type of T.
Determines whatever declaration reside in module.
Determines whatever the declaration resides in a package.
Determines whatever declaration reside in file path or file reside in path.
Determines whatever declaration reside in source set.
Determines whatever the declaration resides outside a package.
The test classes.
The test classes matching the predicate.